//
//  DropImageView.h
//  SohoNaru
//
//  Created by pnpWhite on 13. 7. 3..
//  Copyright (c) 2013년 ladaka Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DropImageViewDelegate;

@interface DropImageView : UIView <UIGestureRecognizerDelegate> {
    CGPoint _originalPoint;
    CGPoint _originalOutSidePoint;
    
    BOOL _isScroll;
}
@property (strong, nonatomic) NSString *imgPath;
@property (strong, nonatomic) UILongPressGestureRecognizer *longGesture;
@property (strong, nonatomic) UIScrollView *svParent;
@property (strong, nonatomic) UIImage *image;
@property (strong, nonatomic) UIView *vMain;
@property (strong, nonatomic) UIImageView *ivDrop;
@property (strong, nonatomic) UIImageView *ivMain;
@property (assign, nonatomic) id<DropImageViewDelegate> delegate;
@property (assign, nonatomic) BOOL isTouch;
@property (assign, nonatomic) NSInteger accessIndex;

- (void) awakeFromNib;
- (void) didStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
- (void) setMainImgPath:(NSString *)imgPath;
@end

@protocol DropImageViewDelegate <NSObject>

- (void) didMainImgTouchDown:(UIImageView *)sender;
- (void) didMainImgTouchUp:(DropImageView *)sender;
- (BOOL) didTrayInside:(UIImageView *)iv imgPath:(NSString *)imgPath touching:(BOOL)isFinished tag:(NSInteger)tag;

@end
